package com.gl.doc.operation;

import com.gl.doc.builder.WordDocument;
import com.gl.doc.model.Paragraph;

import java.util.List;

/**
 * word文档内容读取接口
 */
public interface WordContentRead {
    /**
     * 获取word文档所有段落
     *
     * @param wordDocument word文档对象
     * @return word文档所有段落集合
     */
    List<Paragraph> getParagraphs(WordDocument wordDocument);

    /**
     * 获取一个Word文档段落
     *
     * @param wordDocument word文档对象
     * @param index        段落下标
     * @return 段落
     */
    Paragraph getParagraph(WordDocument wordDocument, Integer index);
}
